package services.impl;


import beans.Slil;
import dao.SlilDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import services.SlilServices;

import java.util.List;

@Service
public class SlilServicesImpl implements SlilServices {
    @Autowired
    private SlilDao slilDao;

    @Override
    public List<Slil> selectList() {
        List<Slil> list = slilDao.selectList();
        return list;
    }

    @Override
    public List<Slil> selectSelective(String selectText, String inputText) {
        List<Slil> list = slilDao.selectSelective(selectText,inputText);
        return list;
    }


    @Override
    public int deleteByPrimaryKey(Integer id) {
        int i = slilDao.deleteByPrimaryKey(id);
        return i;
    }

    @Override
    public int insert(Slil record) {
        int i =slilDao.insert(record);
        return i;
    }

    @Override
    public int insertSelective(Slil record) {
        int i = slilDao.insertSelective(record);
        return i;
    }

    @Override
    public Slil selectByPrimaryKey(Integer id) {
        Slil slil = slilDao.selectByPrimaryKey(id);
        return slil;
    }

    @Override
    public int updateByPrimaryKeySelective(Slil record) {
        int i = slilDao.updateByPrimaryKeySelective(record);
        return i;
    }

    @Override
    public int updateByPrimaryKey(Slil record) {
        int i = slilDao.updateByPrimaryKey(record);
        return i;
    }

    @Override
    public int count() {
        return slilDao.count();
    }
}
